package com.boot.unity.api.wx.controller;

import com.boot.unity.api.wx.entity.TrainRefund;
import com.boot.unity.api.wx.service.WxRefundService;
import org.apache.commons.lang3.StringUtils;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * 退费
 */
@RestController
@RequestMapping("/wx/refund")
@Validated
public class WxRefundController {
    private final Log logger = LogFactory.getLog(WxRefundController.class);
    @Autowired
    private WxRefundService wxRefundService;



    /**
     * 退费申请
     * @param refund
     * @return
     */
    @PostMapping("save")
    public Object save(@RequestBody TrainRefund refund) {
        return wxRefundService.save(refund);
    }

}
